<html>
<head>
<title>Docs For Class Pike_View_Helper_FlashMessages</title>
<link rel="stylesheet" type="text/css" href="../../media/style.css">
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
    <td class="header_top">Pike_View</td>
  </tr>
  <tr><td class="header_line"><img src="../../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td class="header_menu">
        
                                                                                                                                                                                
                              		  [ <a href="../../classtrees_Pike_View.html" class="menu">class tree: Pike_View</a> ]
		  [ <a href="../../elementindex_Pike_View.html" class="menu">index: Pike_View</a> ]
		  	    [ <a href="../../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td class="header_line"><img src="../../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="200" class="menu">
      <b>Packages:</b><br />
              <a href="../../li_Pike.html">Pike</a><br />
              <a href="../../li_DoctrineExtensions-Paginate.html">DoctrineExtensions-Paginate</a><br />
              <a href="../../li_Pike_Application.html">Pike_Application</a><br />
              <a href="../../li_Pike_Doctrine.html">Pike_Doctrine</a><br />
              <a href="../../li_Pike_Grid.html">Pike_Grid</a><br />
              <a href="../../li_Pike_Reflection.html">Pike_Reflection</a><br />
              <a href="../../li_Pike_Session.html">Pike_Session</a><br />
              <a href="../../li_Pike_View.html">Pike_View</a><br />
            <br /><br />
                        <b>Files:</b><br />
      	  <div class="package">
			<a href="../../Pike_View/_View---Stream.php.html">		Stream.php
		</a><br>
	  </div><br />
	subpackage <b>Helper</b><br>  <div class="package">
			<a href="../../Pike_View/Helper/_View---Helper---FlashMessages.php.html">		FlashMessages.php
		</a><br>
			<a href="../../Pike_View/Helper/_View---Helper---FormatException.php.html">		FormatException.php
		</a><br>
			<a href="../../Pike_View/Helper/_View---Helper---Navigation---PikeMenu.php.html">		PikeMenu.php
		</a><br>
	  </div><br />
      
      
            <b>Classes:</b><br />
        <div class="package">
	Helper<br />	    &nbsp;&nbsp;		<a href="../../Pike_View/Helper/Pike_View_Helper_FlashMessages.html">Pike_View_Helper_FlashMessages</a><br />
	    &nbsp;&nbsp;		<a href="../../Pike_View/Helper/Pike_View_Helper_FormatException.html">Pike_View_Helper_FormatException</a><br />
	    &nbsp;&nbsp;		<a href="../../Pike_View/Helper/Pike_View_Helper_Navigation_PikeMenu.html">Pike_View_Helper_Navigation_PikeMenu</a><br />
	  </div>
  <div class="package">
		    		<a href="../../Pike_View/Pike_View_Stream.html">Pike_View_Stream</a><br />
	  </div>
                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1>Class: Pike_View_Helper_FlashMessages</h1>
Source Location: /View/Helper/FlashMessages.php<br /><br />


<table width="100%" border="0">
<tr><td valign="top">

<h3><a href="#class_details">Class Overview</a></h3>
<pre>Zend_View_Helper_Abstract
   |
   --Pike_View_Helper_FlashMessages</pre><br />
<div class="description">FlashMessages view helper</div><br /><br />
<h4>Author(s):</h4>
<ul>
              </ul>




      
      

<h4>Copyright:</h4>
<ul>
  <li>Copyright (C) 2011 by Pieter Vogelaar (platinadesigns.nl) and Kees Schepers (keesschepers.nl)</li>
</ul>
        
</td>

<td valign="top">
<h3><a href="#class_vars">Variables</a></h3>
<ul>
    <li><a href="../../Pike_View/Helper/Pike_View_Helper_FlashMessages.html#var$_flashMessenger">$_flashMessenger</a></li>
    <li><a href="../../Pike_View/Helper/Pike_View_Helper_FlashMessages.html#var$_translator">$_translator</a></li>
  </ul>
</td>


<td valign="top">
<h3><a href="#class_methods">Methods</a></h3>
<ul>
    <li><a href="../../Pike_View/Helper/Pike_View_Helper_FlashMessages.html#methodflashMessages">flashMessages</a></li>
    <li><a href="../../Pike_View/Helper/Pike_View_Helper_FlashMessages.html#method_translate">_translate</a></li>
  </ul>
</td>

</tr></table>
<hr />

<table width="100%" border="0"><tr>






</tr></table>
<hr />

<a name="class_details"></a>
<h3>Class Details</h3>
<div class="tags">
[line <a href="../../__filesource/fsource_Pike_View_Helper_ViewHelperFlashMessages.php.html#a49">49</a>]<br />
FlashMessages view helper<br /><br /><p>(Based on Zend Framework 1.11+)  This helper renders the flash messages.</p><p>Add to application.ini:  resources.view.helperPath.Pike_View_Helper = APPLICATION_PATH &quot;/../library/Pike/View/Helper&quot;  autoloaderNamespaces[] = &quot;Pike&quot;</p><p>Add to layout.phtml:  &lt;?= $this-&gt;flashMessages() ?&gt;</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>copyright:</b>&nbsp;&nbsp;</td><td>Copyright (C) 2011 by Pieter Vogelaar (platinadesigns.nl) and Kees Schepers (keesschepers.nl)</td>
  </tr>
  <tr>
    <td><b>license:</b>&nbsp;&nbsp;</td><td>MIT</td>
  </tr>
</table>
</div>
</div><br /><br />
<div class="top">[ <a href="#top">Top</a> ]</div><br />

<hr />
<a name="class_vars"></a>
<h3>Class Variables</h3>
<div class="tags">
	<a name="var$_flashMessenger"></a>
	<p></p>
	<h4>$_flashMessenger = <span class="value"></span></h4>
	<p>[line <a href="../../__filesource/fsource_Pike_View_Helper_ViewHelperFlashMessages.php.html#a56">56</a>]</p>
  FlashMessenger<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>Zend_Controller_Action_Helper_FlashMessenger</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
	<a name="var$_translator"></a>
	<p></p>
	<h4>$_translator = <span class="value"></span></h4>
	<p>[line <a href="../../__filesource/fsource_Pike_View_Helper_ViewHelperFlashMessages.php.html#a63">63</a>]</p>
  Translator<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
</div>

  <br />
	<div class="tags">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><b>Type:</b>&nbsp;&nbsp;</td>
      <td>Zend_Translate</td>
    </tr>
      </table>
	</div><br /><br />
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
</div><br />

<hr />
<a name="class_methods"></a>
<h3>Class Methods</h3>
<div class="tags">

  <hr />
	<a name="methodflashMessages"></a>
	<h3>method flashMessages <span class="smalllinenumber">[line <a href="../../__filesource/fsource_Pike_View_Helper_ViewHelperFlashMessages.php.html#a95">95</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>string flashMessages(
[
$containerAttributes = array()], [Zend_Translate
$translator = null], [array
$namespaces = array('default', 'warning', 'error')])</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Formats flash messages for the specified namespaces<br /><br /><p>Common namespaces are &quot;default&quot; (success), &quot;warning&quot; and &quot;error&quot;.</p><p>Input:      $this-&gt;_flashMessenger-&gt;addMessage('Success message #1');      $this-&gt;_flashMessenger-&gt;setNamespace('warning')-&gt;addMessage('Warning message #1');      $this-&gt;_flashMessenger-&gt;setNamespace('error')-&gt;addMessage('Error message #1');      $this-&gt;_flashMessenger-&gt;setNamespace('default')-&gt;addMessage('Success message #2');      $this-&gt;_flashMessenger-&gt;addMessage('Success message #3');</p><p>Output:     &lt;div id=&quot;message-container&quot;&gt;         &lt;div class=&quot;namespace namespace-default&quot;&gt;             &lt;ul class=&quot;list&quot;&gt;                 &lt;li class=&quot;message default&quot;&gt;Success message #1&lt;/li&gt;                 &lt;li class=&quot;message default&quot;&gt;Success message #2&lt;/li&gt;                 &lt;li class=&quot;message default&quot;&gt;Success message #3&lt;/li&gt;             &lt;/ul&gt;         &lt;/div&gt;         &lt;div class=&quot;namespace namespace-warning message warning&quot;&gt;Warning message #1&lt;/div&gt;         &lt;div class=&quot;namespace namespace-error message error&quot;&gt;Error message #1&lt;/div&gt;     &lt;/div&gt;</p><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>return:</b>&nbsp;&nbsp;</td><td>HTML of output messages</td>
  </tr>
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">array&nbsp;&nbsp;</td>
        <td><b>$containerAttributes</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
          <tr>
        <td class="type">Zend_Translate&nbsp;&nbsp;</td>
        <td><b>$translator</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
          <tr>
        <td class="type">array&nbsp;&nbsp;</td>
        <td><b>$namespaces</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
  <hr />
	<a name="method_translate"></a>
	<h3>method _translate <span class="smalllinenumber">[line <a href="../../__filesource/fsource_Pike_View_Helper_ViewHelperFlashMessages.php.html#a152">152</a>]</span></h3>
	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
		<code>string _translate(
string
$string)</code>
    </td></tr></table>
    </td></tr></table><br />
	
		Translates a string with the specified translator<br /><br /><br /><br />
<h4>Tags:</h4>
<div class="tags">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
</div>
<br /><br />

	
        <h4>Parameters:</h4>
    <div class="tags">
    <table border="0" cellspacing="0" cellpadding="0">
          <tr>
        <td class="type">string&nbsp;&nbsp;</td>
        <td><b>$string</b>&nbsp;&nbsp;</td>
        <td></td>
      </tr>
        </table>
    </div><br />
        <div class="top">[ <a href="#top">Top</a> ]</div>
  </div>
</div><br />


        <div class="credit">
		    <hr />
		    Documentation generated on Thu, 15 Sep 2011 16:24:52 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>